package com.hmsm.server.util;

import java.io.Serializable;
import java.util.List;

/**
 * 
 *  @描述:对分类页的封装 其含有分页后的内容以及总的记录数
 *  @作者:yaosq
 *  @创建日期:2014-4-1 下午03:40:26  
 *  @param <T>
 */
public class QueryResult<T> implements Serializable{
	private static final long serialVersionUID = 1L;
	/** 根据查询条件查询出来的已经含有分页的记录结果集*/
	private List<T> resultlist;
	/** 总记录数 */
	private long totalrecord;
	/** 查询记录的当前页码 */
	private int nowPageNumber;
	/** 当前显示的记录数，其值等于前面的结果集的size */
	private int nowViewRecordNumber;
	/** 平均每页显示记录数 */
	private int perPageNumber = 20;
	/** 总共多少页，其值等于总记录数除以每页显示数 */
	private long allPages;

	public int getNowViewRecordNumber() {
		return nowViewRecordNumber;
	}

	public void setNowViewRecordNumber(int nowViewRecordNumber) {
		this.nowViewRecordNumber = nowViewRecordNumber;
	}

	public int getNowPageNumber() {
		return nowPageNumber;
	}

	public void setNowPageNumber(int nowPageNumber) {
		this.nowPageNumber = nowPageNumber;
	}

	public List<T> getResultlist() {
		return resultlist;
	}

	public void setResultlist(List<T> resultlist) {
		this.resultlist = resultlist;
	}

	public long getTotalrecord() {
		return totalrecord;
	}

	public void setTotalrecord(long totalrecord) {
		this.totalrecord = totalrecord;
	}

	public int getPerPageNumber() {
		return perPageNumber;
	}

	public void setPerPageNumber(int perPageNumber) {
		this.perPageNumber = perPageNumber;
	}

	public long getAllPages() {
		return allPages;
	}

	public void setAllPages(long allPages) {
		this.allPages = allPages;
	}
}
